package win.ganbo.easyframwork.commons.exception;

/**
 * 系统业务异常
 * @author ganbo
 * 2016年7月11日 上午2:33:46
 */
public class ServiceException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	
	private String code; //异常代码

	public ServiceException(String code,String message) {
		super(message);
		this.code = code;
	}

	public ServiceException() {
		super();
	}
	public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}
	public ServiceException(String message, Throwable cause) {
		super(message, cause);
	}
	public ServiceException(String message) {
		super(message);
	}
	public ServiceException(Throwable cause) {
		super(cause);
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
}
